<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<c:set var="title" value="订单详情" scope="request" />
<jsp:include page="/head.jsp" />
</head>
<body>
	<c:import url="/news-class.do?mb=header" />
	
	<form enctype="multipart/form-data" method="Post" action="hotel/inRoom.do"  class="form-horizontal">
		<div class="col-md-12">
			<div class="main-title">
				<div>订单 信 息</div>
			</div>
		</div>
		<div class="form-group">
			<!-- <label class="col-sm-2 control-label">房间类型</label>
			<div class="col-sm-4">
				<select id="slt" name="roomTypeId" class="form-control">
					<option value="1">单人间</option>
					<option value="2">双人间</option>
					<option value="3">豪华三人间</option>
					<option value="4">商务间</option>
					<option value="5">总统套间</option>
				</select>
				<script type="text/javascript">
					$(function(){
						$("#slt").find("option[value = '"+${roomInfo.roomTypeId}+"']").attr("selected","selected");
					});
				</script>
			</div> -->
			<label class="col-sm-2 control-label">订单编号</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="${orderInfo.orderId}" type="text" class="form-control" name="orderId" />
			</div>
			<label class="col-sm-2 control-label">订单状态</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="${orderInfo.orderStatus}" type="text" class="form-control" name="roomNum" />
			</div>
			<label class="col-sm-2 control-label">订单金额</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="${orderInfo.orderPrice}" type="text" class="form-control" name="roomMarketPrice" />
			</div>
			<label class="col-sm-2 control-label">用户名称</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="${roleName}" type="text" class="form-control" name="roleName" />
				<input style="display: none;" readonly="readonly" value="${orderInfo.userName}" type="text" class="form-control" name="userName" />
			</div>
			<label class="col-sm-2 control-label">房间类型</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="${orderInfo.roomTypeId}" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
			<label class="col-sm-2 control-label">下单时间</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="<fmt:formatDate value="${orderInfo.orderCreateTime}" pattern="yyyy年MM月dd日HH点mm分ss秒" />" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
			
			<label class="col-sm-2 control-label">预定入住时间</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="<fmt:formatDate value="${orderInfo.orderPreStartdate}" pattern="yyyy年MM月dd日" />" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
			<label class="col-sm-2 control-label">预定离店时间</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="<fmt:formatDate value="${orderInfo.orderPreEnddate}" pattern="yyyy年MM月dd日" />" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
			<label class="col-sm-2 control-label">实际入住时间</label>
			<div class="col-sm-4">
				<input readonly="readonly" value="<fmt:formatDate value="${orderInfo.orderRealStarttime}" pattern="yyyy年MM月dd日" />" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
			<label class="col-sm-2 control-label">实际离店时间</label>
			<div class="col-sm-4">
				<input  readonly="readonly" value="<fmt:formatDate value="${orderInfo.orderRealEndtime}" pattern="yyyy年MM月dd日" />" type="text" class="form-control" name="roomPlatformPrice" />
			</div>
		</div>
		<div class="col-md-12">
			<div class="main-title">
				<div>订单操作</div>
			</div>
		</div>
		<c:if test="${yfk}">
			在此输入开房码：<input type="text" class="form-control" name="orderCode" />
			<button type="submit" class="btn btn-default">开房入住</button>
		</c:if>
		<c:if test="${ypl}">
			客户评论：<br/>
			<textarea readonly="readonly"  required="required" name="content" style="height: 200px; width:100%; overflow: hidden; text-indent: 4px; ">${order.commentContent }</textarea>
		</c:if>
		<c:if test="${yrz}">
			<a href="hotel/outRoom.do?orderId=${orderInfo.orderId}"class="btn btn-default">退房</a>
		</c:if>
			<a style="float: right;" href="javascript:history.go(-1)"class="btn btn-default">返回</a>
	</form>


	<jsp:include page="/footer.jsp"/>
</body>
</html>